import fetch from 'common/src/utils/fetch';
import baseUrl from './env';

// 查询本科生教学大纲统计提交率和审核通过率
function getRate(data) {
    return fetch({
        url: `${baseUrl}/syllabusEntry/sum/getRate`,
        method: 'post',
        data
    });
}

function download(data) {
    return fetch({
        url: `${baseUrl}/syllabusEntry/sum/SyllabusSum/exportList`,
        method: 'post',
        data
    });
}

function exportStatus(key) {
    return fetch({
        url: `${baseUrl}/file/result/${key}`,
        method: 'get'
    });
}

export default {
    'getRate': getRate,
    'download': download,
    'exportStatus': exportStatus
};

